package com.game.springbootstart.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.game.springbootstart.DTO.GamesDTO;
import com.game.springbootstart.config.QueryPageParam;
import com.game.springbootstart.entity.Games;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 游戏表 服务类
 * </p>
 *
 * @author author
 * @since 2025-01-29
 */
public interface IGamesService extends IService<Games> {
    public List<String> getCategories();

    List<Games> selectCategoryByName(String categoryName);

    List<Games> listByStatus();

    List<Games> searchGames(String keyword);

    Games listId(Long id);

    Long selectIdByName(String name);

    IPage<GamesDTO> listPage(QueryPageParam query);

    List<String> lists();
}
